﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="lp_Package.aspx.cs" Inherits="ZLDC.Estate.Quantify.lp_Package" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>

    <script src="flexigrid/jquery.js" type="text/javascript"></script>

    <link href="../css/main.css" rel="stylesheet" type="text/css" />

    <script src="js/lp_Basis.js" type="text/javascript"></script>

    <link href="css/page.css" rel="stylesheet" type="text/css" />

    <script type="text/javascript">
     
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <div>
        <div id="divnewName" runat="server" style="display: none">
            新增套餐名称：<asp:TextBox ID="txtName" runat="server"></asp:TextBox><asp:LinkButton ID="LinkButton2"
                runat="server" OnClick="LinkButton2_Click" Visible="false">返回列表</asp:LinkButton></div>
        <span id="sptc" runat="server">套餐：
            <asp:DropDownList ID="dropPK" runat="server" AutoPostBack="True" OnSelectedIndexChanged="dropPK_SelectedIndexChanged">
            </asp:DropDownList>
            <asp:TextBox ID="txttext" runat="server"></asp:TextBox></span> &nbsp;&nbsp;<asp:LinkButton
                ID="LinkButton1" runat="server" OnClick="LinkButton1_Click">新增套餐</asp:LinkButton></div>
    <div id="dv" runat="server">
        <asp:Panel ID="Panel2" runat="server" Width="95%">
            <asp:HiddenField ID="hiduserid" runat="server" />
            <div style="color: Red">
                注意：只能修改保存自己的套餐，上级套餐只能做新增！</div>
            <table id="table2" width="700px" border='0' cellpadding='0' cellspacing='1' bgcolor='#a8c7ce' >
                <thead>
                    <tr>
                        <th align="center" width="60" bgcolor='d3eaef' class='STYLE6'>
                            类别
                        </th>
                        <th align="center" width="60" bgcolor='d3eaef' class='STYLE6'>
                            选择
                        </th>
                        <th align="center" width="80" bgcolor='d3eaef' class='STYLE6'>
                            工作项名称
                        </th>
                        <th align="center" width="60" bgcolor='d3eaef' class='STYLE6'>
                            分值
                        </th>
                        <th align="center" width="60" bgcolor='d3eaef' class='STYLE6'>
                            最高分
                        </th>
                        <th align="center" width="60" bgcolor='d3eaef' class='STYLE6'>
                            完成数量
                        </th>
                        <th align="center" width="60px" bgcolor='d3eaef' class='STYLE6'>
                            单项总分
                        </th>
                    </tr>
                </thead>
                <tbody>
                    <asp:Repeater ID="RpList" runat="server">
                        <ItemTemplate>
                            <tr>
                                <td class='STYLE10'>
                                    <%# Eval("Other1")%>
                                </td>
                                <td>
                                    <asp:CheckBox ID="ckb" runat="server" onclick='Knum(this,"table2",2)'  Checked='<%#  ZLDC.Topo.BLL.Estate.lp_Package.Gettr(Eval("Choose").ToString()) %>' />
                                    <asp:HiddenField ID="hidid" runat="server" Value='<%# Eval("BasisCode") %>' />
                                    <asp:HiddenField ID="TypeName" runat="server" Value='<%# Eval("Other1") %>' />
                                    <asp:HiddenField ID="hidUnit" runat="server" Value='<%# Eval("Unit") %>' />
                                    <asp:HiddenField ID="hidName" runat="server" Value='<%# Eval("BasisName") %>' />
                                    <asp:HiddenField ID="hidRemark" runat="server" Value='<%# Eval("Remark") %>' />
                                    <asp:HiddenField ID="hidQuantity" runat="server" Value='<%# Eval("Quantity") %>' />
                                    <asp:HiddenField ID="hidPoint" runat="server" Value='<%# Eval("Point") %>' />
                                    <asp:HiddenField ID="hidCompleteNum" runat="server" Value='<%# Eval("CompleteNum") %>' />
                                    <asp:HiddenField ID="hidPackageID" runat="server" Value='<%# Eval("PackageID") %>' />
                                    <asp:HiddenField ID="hidChoosesj" runat="server" Value='<%# Eval("Choosesj") %>' />
                                </td>
                                <td class='STYLE10'>
                                    <%# Eval("BasisName")%>
                                    <%# Eval("CompleteNum") %>
                                    <%# Eval("Unit") %>
                                </td>
                                <td class='STYLE10'>
                                    <%# Eval("Point")%>
                                </td>
                                <td class='STYLE10'>
                                    <asp:TextBox ID="txtScore" Width="50px" onkeydown="myKeyDown()" Enabled="false" runat="server"
                                        Text='<%# Eval("Score") %>'></asp:TextBox>
                                </td>
                                <td class='STYLE10'>
                                    <asp:TextBox ID="txtQuantity" Width="50px"  runat="server"
                                        onkeyup='Knum(this,"table2",2)' Text='<%# Eval("Quantity") %>'></asp:TextBox>
                                </td>
                                <td class='STYLE10' style="text-align: center">
                                    <asp:TextBox ID="txtSinglePoint" Width="95%"  BorderStyle="None"  contenteditable="false"
                                        Text='<%#  Eval("SinglePoint") %>'
                                        runat="server"></asp:TextBox>
                                </td>
                                <td class='STYLE10' style="display: none">
                                    <%# Eval("CompleteNum") %>
                                </td>
                            </tr>
                        </ItemTemplate>
                    </asp:Repeater>
                    <tr>
                        <td>
                            总分:
                        </td>
                        <td>
                        </td>
                        <td>
                        </td>
                        <td>
                        </td>
                        <td>
                        </td>
                        <td>
                        </td>
                        <td>
                            <input id="txtallnum2" style="width: 50px; color: Red" value="0" runat="server" name="txtallnum2"
                                type="text" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            最低总分:
                        </td>
                        <td>
                        </td>
                        <td>
                        </td>
                        <td>
                        </td>
                        <td>
                        </td>
                        <td>
                        </td>
                        <td>
                            <input id="txtTotal2" style="width: 50px; color: Red" value="0" runat="server" name="txtTotal2"
                                readonly="readonly" type="text" />
                        </td>
                    </tr>
                </tbody>
            </table>
        </asp:Panel>
        <asp:Panel ID="Panel1" runat="server" Width="95%" Visible="false">
            <table id="table1" width="700px">
                <thead>
                    <tr>
                        <th align="center" width="60" bgcolor='d3eaef' class='STYLE6'>
                            类别
                        </th>
                        <th align="center" width="60" bgcolor='d3eaef' class='STYLE6'>
                            选择
                            <input name='chkAll' type='checkbox' id='chkAll' onclick='CheckAll(this)' value='checkbox' />
                        </th>
                        <th align="center" width="80" bgcolor='d3eaef' class='STYLE6'>
                            工作项名称
                        </th>
                        <th align="center" width="60" bgcolor='d3eaef' class='STYLE6'>
                            分值
                        </th>
                        <th align="center" width="60" bgcolor='d3eaef' class='STYLE6'>
                            最高分
                        </th>
                        <th align="center" width="60" bgcolor='d3eaef' class='STYLE6'>
                            完成数量
                        </th>
                        <th align="center" width="60px" bgcolor='d3eaef' class='STYLE6'>
                            单项总分
                        </th>
                    </tr>
                </thead>
                <tbody>
                    <asp:Repeater ID="Repeater1" runat="server">
                        <ItemTemplate>
                            <tr>
                                <td class='STYLE10'>
                                    <%# Eval("TypeName")%>
                                </td>
                                <td>
                                    <asp:CheckBox ID="ckb" runat="server" />
                                    <asp:HiddenField ID="hidid" runat="server" Value='<%# Eval("TypeCode") %>' />
                                    <asp:HiddenField ID="hidPoint" runat="server" Value='<%# Eval("Point") %>' />
                                    <asp:HiddenField ID="hidName" runat="server" Value='<%# Eval("Name") %>' />
                                    <asp:HiddenField ID="hidRemark" runat="server" Value='<%# Eval("Remark") %>' />
                                    <asp:HiddenField ID="hidUnit" runat="server" Value='<%# Eval("Unit") %>' />
                                    <asp:HiddenField ID="hidQuantity" runat="server" Value='<%# Eval("Quantity") %>' />
                                    <asp:HiddenField ID="TypeName" runat="server" Value='<%# Eval("TypeName") %>' />
                                </td>
                                <td>
                                    <%# Eval("Name")%>
                                    <%# Eval("Quantity")%>
                                    <%# Eval("Unit") %>
                                </td>
                                <td>
                                    <%# Eval("Point")%>
                                    
                                </td>
                                <td>
                                    <asp:TextBox ID="txtScore" onkeydown="myKeyDown()" Enabled="false" Width="50px" Text='<%# Eval("Highest") %>'
                                        runat="server"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtQuantity" onkeydown="myKeyDown()" Width="50px" onkeyup='Knum(this,"table1",1)'
                                        runat="server"></asp:TextBox>
                                </td>
                                <td class='STYLE10' style="text-align: center">
                                    <asp:TextBox ID="TextBox2" Width="95%" onkeydown="myKeyDown()" BorderStyle="None" contenteditable="false"
                                        runat="server"></asp:TextBox>
                                </td>
                                <td style="display: none">
                                    <%# Eval("Quantity")%>
                                </td>
                            </tr>
                        </ItemTemplate>
                    </asp:Repeater>
                    <tr>
                        <td>
                            总分:
                        </td>
                        <td>
                        </td>
                        <td>
                        </td>
                        <td>
                        </td>
                        <td>
                        </td>
                        <td>
                        </td>
                        <td>
                            <input id="txtallnum1" value="0" style="width: 50px; color: Red; border-style: None"
                                runat="server" name="txtallnum1" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            最低总分:
                        </td>
                        <td>
                        </td>
                        <td>
                        </td>
                        <td>
                        </td>
                        <td>
                        </td>
                        <td>
                        </td>
                        <td>
                            <input id="txtTotal1" value="0" style="width: 50px; color: Red; border-style: None"
                                runat="server" name="txtTotal1" readonly="readonly" type="text" />
                        </td>
                    </tr>
                </tbody>
            </table>
        </asp:Panel>
        <asp:HiddenField ID="hidcount" Value="0" runat="server" />
        <asp:HiddenField ID="hiddeptid" Value="0" runat="server" />
        <asp:Button ID="Button1" runat="server" Text="保存" OnClick="Button1_Click" OnClientClick="return YZname()" />&nbsp;&nbsp;
        <asp:Button ID="btnAdd" runat="server" Text="新增" Visible="false" OnClientClick="return YZname()"
            OnClick="btnAdd_Click" />&nbsp;&nbsp;
        <asp:Button ID="Button2" runat="server" Text="删除" OnClientClick="return CKdelete()"
            OnClick="Button2_Click" />&nbsp;&nbsp;
        <input id="btnDetermine" runat="server" type="button" onclick="btnDetermine_click(1)" value="生效" visible="false" />&nbsp;&nbsp;
        <input id="btnCantel"  runat="server" type="button" value="取消生效" onclick="btnDetermine_click(0)"  visible="false" />
    </div>

    <script src="js/lp_Package.js" type="text/javascript"></script>

    </form>
</body>
</html>
